// 学校新闻列表的 教育专题列表的
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ItemOption extends StatefulWidget {
  ItemOption({Key key}) : super(key: key);

  @override
  _ItemOptionState createState() => _ItemOptionState();
}

class _ItemOptionState extends State<ItemOption> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          InkWell(
            child: Container(
              height: 150.h,
              child: Row(
                children: [
                  ClipRRect(
                    borderRadius: BorderRadius.circular(10),
                    child: Image.network(
                      'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1603365312,3218205429&fm=26&gp=0.jpg',
                      width: 180.w,
                      height: 150.h,
                      fit: BoxFit.fill,
                    ),
                  ),
                  Container(
                    width: 520.w,
                    padding: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Text(
                          '采取五种方法做好中学生心理健康教育工作，让学生快乐成长',
                          softWrap: true,
                          style: TextStyle(
                            fontWeight: FontWeight.w600,
                            fontSize: 30.sp,
                          ),
                        ),
                        Row(
                          children: [
                            Text('2020.11.03',
                                style: TextStyle(color: Colors.grey)),
                            SizedBox(width: 25.w),
                            Text('13.06', style: TextStyle(color: Colors.grey)),
                          ],
                        ),
                      ],
                    ),
                  )
                ],
              ),
            ),
            onTap: () {
              print("index");
            },
          ),
          SizedBox(height: 50.h),
        ],
      ),
    );
  }
}
